import http from '@/utils/http'
const env = import.meta.env
const BASE_URL = env.PROD ? `${env.VITE_API_BASE_URL}/api` : '/api'

/** @desc 获取验证码图片 */
export function captcha() {
  return http.get(`${BASE_URL}/captcha`)
}

/** @desc 登录 */
export function login(data: any) {
  return http.post(`${BASE_URL}/auth/login`, data)
}
